import http from '/src/utils/request'

export function getFolloweesList(userId,currPage,pageSize) {
  return http.get(`/plugins/baliServer-module-follow/api/follow/getFolloweesList?userId=${userId}&currPage=${currPage}&pageSize=${pageSize}`)
}

export function getFollowerList(userId,currPage,pageSize) {
  return http.get(`/plugins/baliServer-module-follow/api/follow/getFollowerList?userId=${userId}&currPage=${currPage}&pageSize=${pageSize}`)
}

export function isFollow(userId,followeeUserId) {
  return http.get(`/plugins/baliServer-module-follow/api/follow/isFollow?userId=${userId}&followeeUserId=${followeeUserId}`)
}

export function getFollowerCount(userId) {
  return http.get(`/plugins/baliServer-module-follow/api/follow/getFollowerCount?userId=${userId}`)
}

export function getFolloweesCount(userId) {
  return http.get(`/plugins/baliServer-module-follow/api/follow/getFolloweeCount?userId=${userId}`)
}

export function doFollow(userId,targetUserId) {
  return http.get(`/plugins/baliServer-module-follow/api/follow/follow?userId=${userId}&targetUserId=${targetUserId}`)
}

export function doUnFollow(userId,targetUserId) {
  return http.get(`/plugins/baliServer-module-follow/api/follow/unfollow?userId=${userId}&targetUserId=${targetUserId}`)
}
